# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
_pkgname=cligj
pkgname=py3-$_pkgname
pkgver=0.5.0
pkgrel=0
pkgdesc="Common arguments and options for GeoJSON processing commands, using Click"
url="https://pypi.org/project/cligj/"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-click
	"
makedepends="
	py3-setuptools
	"
checkdepends="
	pytest
	"
source="
	py3-cligj-$pkgver.tar.gz::https://github.com/mapbox/cligj/archive/$pkgver.tar.gz
	"
builddir="$srcdir/cligj-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=2
}

sha512sums="d0f7ddaa3ff98e5cfac6ff6f3cac0720674f8fa28cc720035cbc71265875cb84e8e847c8a09ac8a5d4a0547f291a4c59536fca88b9eeee92c7259c7eb4c2d599  py3-cligj-0.5.0.tar.gz"
